//
//  MLDUserAccount.swift
//  Sina
//
//  Created by 万世豪情 on 15/10/23.
//  Copyright © 2015年 万世豪情. All rights reserved.
//

import UIKit

class MLDUserAccount: NSObject {
    
    //访问令牌
    var access_token: String?
    //过期时间,秒数.是一个基本数据类型,系统默认是不会分配内存空间
    var expires_in: Int = 0
    
    var remind_in: String?
    //用户的uid
    var uid: String?
    
    
    init(dictionary: [String: AnyObject]){
        super.init()
        
        //字典转模型,kvc
        setValuesForKeysWithDictionary(dictionary)
    }
    
    
    /**
    内部默认实现是抛一个错误出来
    
    - parameter value: <#value description#>
    - parameter key:   <#key description#>
    */
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }
    
    override var description: String {
        let keys = ["access_token","expires_in","remind_in","uid"]
        return dictionaryWithValuesForKeys(keys).description
    }


}
